{{include file="Header.html"}}
<div id="pathway"><span class="breadcrumbs pathway"> <a
	href="index.php" class="pathway">首页</a><img
	src="templates/rhuk_milkyway/images/arrow.png" alt="" />编辑申报企业信息</span></div>
<div class="clr"></div>
<div id="whitebox">
<div id="whitebox_t">
<div id="whitebox_tl">
<div id="whitebox_tr"></div>
</div>
</div>
<div id="whitebox_m">
<div id="area">
{{include file="Sider.html"}}
<div id="maincolumn">
<table class="nopad">
	<tr valign="top">
		<td>
		<form action="index.php?controller=Company&action=ChangeInfo" method="post"
			name="userform" class="form-validate">
		<div class="componentheading">编辑申报企业资料</div>
		<table cellpadding="5" cellspacing="0" border="0" width="100%">
			<tr>
				<td><label for="username"> 您的账号: </label></td>
				<td><span>{{$userInfo.username}}</span></td>
			</tr>
			<tr>
				<td><label for="nature"> 企业性质: </label></td>
				<td><select name="nature" size="1" onchange="changeTitle(this.options[this.selectedIndex].value)">
					<option value="-1">请选择</option>
					{{section name=cm loop=$companyNature}}
					<option value="{{$companyNature[cm].id}}" {{if $company.nature == $companyNature[cm].id}}selected="selected"{{/if}}>{{$companyNature[cm].name}}</option>
					{{/section}}
				</select></td>
			</tr>
			<tr>
				<td width="120"><label for="name"> 企业名称: </label></td>
				<td><input class="inputbox required" type="text" id="name"
					name="name" value="{{$company.name}}" size="40" /></td>
			</tr>
			<tr>
				<td><label for="email"> 企业营业执照号: </label></td>
				<td><input class="inputbox required validate-email" type="text"
					id="permitNumber" name="permitNumber" value="{{$company.permitNumber}}" size="40" /></td>
			</tr>
			<tr>
				<td><label for="email"> 企业营业执照号有效期截止日期: </label></td>
				<td><input class="inputbox required validate-email" type="text"
					id="permitValideDate" name="permitValideDate" value="{{$company.permitValideDate}}" size="40" /> 格式为“2009-03-24”</td>
			</tr>
			<tr>
				<td><label for="email"> 医疗器械<span id="change1">{{if $company.nature == 1}}生产{{else}}经营{{/if}}</span>许可证号: </label></td>
				<td><input class="inputbox required validate-email" type="text"
					id="manageNumber" name="manageNumber" value="{{$company.manageNumber}}" size="40" /></td>
			</tr>
			<tr>
				<td><label for="email"> 医疗器械<span id="change2">{{if $company.nature == 1}}生产{{else}}经营{{/if}}</span>许可证号有效期截止日期: </label></td>
				<td><input class="inputbox required validate-email" type="text"
					id="manageValideDate" name="manageValideDate" value="{{$company.manageValideDate}}" size="40" /> 格式为“2009-03-24”</td>
			</tr>
			<tr>
				<td><label for="password2"> 公司电话: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="cTelephone" name="cTelephone" size="40" value="{{$company.cTelephone}}"/> </td>
			</tr>
			<tr>
				<td><label for="password2"> 法人姓名: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="legalPerson" name="legalPerson" size="40" value="{{$company.legalPerson}}"/> </td>
			</tr>
			<tr>
				<td><label for="password2"> 法人手机: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="legalPersonCellphone" name="legalPersonCellphone" size="40" value="{{$company.legalPersonCellphone}}" /> </td>
			</tr>
			<tr>
				<td><label for="password"> 法人座机: </label></td>
				<td><input class="inputbox validate-password" type="text"
					id="telephone" name="telephone" value="{{$company.telephone}}" size="40" /> </td>
			</tr>
			<tr>
				<td><label for="password2"> 负责人姓名: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="resPerson" name="resPerson" size="40" value="{{$company.resPerson}}"/> </td>
			</tr>
			<tr>
				<td><label for="password2"> 负责人手机: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="resPersonCellphone" name="resPersonCellphone" size="40" value="{{$company.resPersonCellphone}}" /> </td>
			</tr>
			<tr>
				<td><label for="password"> 负责人座机: </label></td>
				<td><input class="inputbox validate-password" type="text"
					id="resPersonTelephone" name="resPersonTelephone" value="{{$company.resPersonTelephone}}" size="40" /> </td>
			</tr>
			<tr>
				<td><label for="password2"> 联系人/经办人姓名: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="contactPerson" name="contactPerson" size="40" value="{{$company.contactPerson}}"/> </td>
			</tr>
			<tr>
				<td><label for="password2"> 联系人/经办人手机: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="contactPersonCellphone" name="contactPersonCellphone" size="40" value="{{$company.contactPersonCellphone}}" /> </td>
			</tr>
			<tr>
				<td><label for="password2"> 联系人/经办人座机电话: </label></td>
				<td><input class="inputbox validate-passverify" type="text"
					id="contactPersonTelephone" name="contactPersonTelephone" size="40" value="{{$company.contactPersonTelephone}}" /> </td>
			</tr>
			<tr>
				<td><label for="password2"> 配送公司名录: <a
					href="javascript:AddRow()">添加</a> 最多提交20个</label></td>
				<td><table width="200" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>配送公司名称</td>
                    <td>配送产品区域</td>
                  </tr>
                  {{section name=d loop=$dispatching}}
                  <tr>
                    <td><input name="dispatching_name[]" value="{{$dispatching[d].name}}" type="text" /></td>
                    <td><input name="dispatching_area[]" value="{{$dispatching[d].area}}" type="text" /></td>
                    <input type="hidden" name="dispatching_id[]" value="{{$dispatching[d].dispatching_id}}" />
                  </tr>
                  {{/section}}
                </table>
                <table width="200" border="0" cellpadding="0" cellspacing="0" id="d_message">

                </table>
                </td>
				<!--<td><textarea name="dispatching" cols="32" rows="5" id="dispatching">{{$company.dispatching}}</textarea>每行填写一个</td>-->
			</tr>
		</table>
		<div class="notice">企业个数以今后政策为准。</div>
		<button class="button validate" type="submit" >保存</button>
		<input type="hidden" name="declare_id" value="{{$company.declare_id}}" /></form>
		</td>
	</tr>
</table>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div id="whitebox_b">
<div id="whitebox_bl">
<div id="whitebox_br"></div>
</div>
</div>
</div>
{{include file="Footer.html"}}